package demo;

public class Customer {
	
	static int count = 1;
	int id;
	String forName;
	String name;
	
	public Customer() {
		this.id = count++;
	}	
	
	public Customer(String forName, String name) {
		super();
		this.id = count++;
		this.forName = forName;
		this.name = name;
	}

	public String toString(){
		return id+" "+forName+" "+name;
	}	
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getForName() {
		return forName;
	}
	public void setForName(String forName) {
		this.forName = forName;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
}
